package com.atguigu.eduService.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Auther: wangsir
 * @Date: 2022/7/14-07-14-15-36-18
 * @Description: com.atguigu.eduService.client
 * @version: 1.0
 */
@Component
@FeignClient(name = "service-order")
public interface OrdersClient {

    //3.根据课程id和用户id查询订单表，看是否已经购买
    @GetMapping("/eduorder/order/isBuyCourse/{courseId}/{memberId}")
    public boolean isBuyCourse(@PathVariable("courseId") String courseId,@PathVariable("memberId") String memberId);
}
